package com.landerer.math;

final class Point {

	private final double x;
	private final double y;

	Point(Builder builder) {
		this.x = builder.x;
		this.y = builder.y;
	}

	double getX() {
		return x;
	}

	double getY() {
		return y;
	}

	static class Builder {

		private final double x;
		private final double y;

		Builder(double x, double y) {
			this.x = x;
			this.y = y;
		}

		Point build() {
			return new Point(this);
		}
	}
}
